package com.ytkj.tradeserver.dao;

import java.util.List;

import com.ytkj.tradeserver.entity.ProductInfo;
import com.ytkj.tradeserver.entity.ProductInfoKey;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductInfoMapper {
    int deleteByPrimaryKey(ProductInfoKey key);

    int insert(ProductInfo record);

    int insertSelective(ProductInfo record);

    ProductInfo selectByPrimaryKey(ProductInfoKey key);

    int updateByPrimaryKeySelective(ProductInfo record);

    int updateByPrimaryKeyWithBLOBs(ProductInfo record);

    int updateByPrimaryKey(ProductInfo record);
    
    public List<ProductInfo> queryAllDepartment();
    
    public ProductInfo queryProductInfoWithPid(String pid);
 
    public int deleteProductInfoWithPid(String pid);
    
}